import instance from "@/utils/requestExam";
// 8084
export function login(data){
    return instance.post(`/auth/login`,data,{
        headers: {
            isToken: false,
            isEncrypt: true,
            repeatSubmit: false
        },
    })
}
//获取个人信息  /system/user/profile
export function getProfile(data){
    return instance.get(`/system/user/getInfo`,{
        headers:{
            "Authorization": 'Bearer ' + data.token,
            "clientid": data.clientid
        }
    })
}
//退出登录  auth/logout post
export function logout(data){
    return instance.post(`/auth/logout`,{
        headers:{
            "Authorization": 'Bearer ' + data.token,
            "clientid": data.clientid
        }
    })
}

